package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.time.LocalDateTime;

public class Examination implements Serializable {
    private Integer id;
    private Timestamp startTime;
    private Integer duration;
    private Integer authorId;
    private String authorName;
    private Integer courseId;
    private String courseName;
    private Integer state;
    private LocalDateTime createDate;
    private String examName;

    public Examination(int id, Timestamp startTime, int duration, int authorId, int courseId, int state, LocalDateTime createDate, String examName) {
        this.id = id;
        this.startTime = startTime;
        this.duration = duration;
        this.authorId = authorId;
        this.courseId = courseId;
        this.state = state;
        this.createDate = createDate;
        this.examName = examName;
    }

    public Examination() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public int getAuthorId() {
        return authorId;
    }

    public void setAuthorId(int authorId) {
        this.authorId = authorId;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    @Override
    public String toString() {
        return "Examination [id=" + id + ", startTime=" + startTime + ", duration=" + duration + ", authorId=" + authorId + ", courseId=" + courseId + ",courseName=" + courseName + ", state=" + state + ", createDate=" + createDate + ",examName=" + examName + "]";
    }
}